﻿<%@ Page Language="VB" MasterPageFile="~/WebForm/MasterPage.master" AutoEventWireup="false"
    CodeFile="ManageOrganization.aspx.vb" Inherits="WebForm_ManageOrganization" EnableEventValidation="false" %>

<%@ Register Src="~/WebForm/ManageOrganization/AddOrganization.ascx" TagName="AddOrganization"
    TagPrefix="My" %>
<%@ Register Assembly="App_Code" Namespace="My" TagPrefix="My" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table align="center" width="95%">
        <tr>
            <td align="center">
                <asp:Label ID="Title" runat="server" SkinID="title" meta:resourcekey="Page"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" AutoPostBack="false"
                    ActiveTabIndex="0" CssClass="NewsTab">
                    <ajaxToolkit:TabPanel ID="SearchTabPanel"
                     runat="server" meta:resourcekey="SearchTabPanel">
                        <ContentTemplate>
<div style="background-color: #351D26">
                            <table width="100%">                            
                                <tr>
                                    <td>
                                        <asp:Label ID="lblActive" runat="server" meta:resourcekey="lblActive"/>
                                         <asp:DropDownList ID="ddlActive" runat="server" AutoPostBack="true"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:UpdatePanel ID="up1" runat="server" UpdateMode="conditional">
                                            <ContentTemplate>
                                                <asp:TreeView ID="trOrganization" style="background-color: #351D26" runat="server" ImageSet="Simple" ShowLines="true">
                                                    <Nodes>
                                                        <My:MyTreeNode MyText="Root">
                                                            <My:MyTreeNode MyText="Department1">
                                                                <My:MyTreeNode MyText="Department3">
                                                                </My:MyTreeNode>
                                                            </My:MyTreeNode>
                                                            <My:MyTreeNode MyText="Department2">
                                                            </My:MyTreeNode>
                                                        </My:MyTreeNode>
                                                    </Nodes>
                                                    <NodeStyle Font-Size="9pt" />
                                                    
                                                </asp:TreeView>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                        <asp:Panel ID="Panel2" runat="server" style="background-color: #351D26" BorderColor="Black" Width="150px" CssClass="skin0" onClick="jumptoie5(event)">
                                            <asp:Menu ID="ContextMenu1" runat="server" Font-Size="9pt" Width="100%">
                                                <StaticItemTemplate>
                                                    <asp:Label ID="lblMenuItem" runat="server" Text='<%# Eval("Text") %>' onclick="if(this.innerText=='Disable') return confirm('Sure to Disable?');"></asp:Label>
                                                </StaticItemTemplate>
                                                <Items>
                                                    <asp:MenuItem Value="Add" meta:resourcekey="miAdd"></asp:MenuItem>
                                                    <asp:MenuItem Value="Edit" meta:resourcekey="miEdit"></asp:MenuItem>
<%--                                                    <asp:MenuItem Value="Disable" meta:resourcekey="miDisable"></asp:MenuItem>--%>
                                                    <asp:MenuItem Value="Cut" meta:resourcekey="miCut"></asp:MenuItem>
                                                    <asp:MenuItem Value="Paste" meta:resourcekey="miPaste"></asp:MenuItem>
                                                </Items>
                                                <StaticHoverStyle BackColor="#9999FF" />
                                            </asp:Menu>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
</div>
                        </ContentTemplate>
                    </ajaxToolkit:TabPanel>
                    <ajaxToolkit:TabPanel ID="AddTabPanel" runat="server" meta:resourcekey="AddTabPanel">
                        <ContentTemplate>
                            <My:AddOrganization ID="AddOrganization1" runat="server" />
                        </ContentTemplate>
                    </ajaxToolkit:TabPanel>
                </ajaxToolkit:TabContainer>
            </td>
        </tr>
    </table>
    <br />

    <script>
if (ie5||ns6)  
  menuobj=document.getElementById("<%= Me.Panel2.ClientID %>")  ;
  
  //alert(document.onclick);
    </script>

</asp:Content>
